package com.xxgc.eow.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 题解
 * </p>
 *
 * @author Mr.Abel
 * @since 2023-05-21
 */
@Getter
@Setter
@Schema(name = "Topicanswer", description = "题解")
public class Topicanswer implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "题解id")
    @TableId(value = "topic_answer_id", type = IdType.AUTO)
    private Integer topicAnswerId;

    @Schema(description = "题目id")
    private Integer topicId;

    @Schema(description = "题解内容")
    private String topicAnswerContent;

    @Schema(description = "题解作者")
    private Integer topicAnswerUser;

    @Schema(description = "题解视频路径")
    private String video;

    @Schema(description = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @Schema(description = "销毁时间")
    private LocalDateTime destroyTime;

    @Schema(description = "假删除状态")
    private Byte tip;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getTopicAnswerId() {
        return topicAnswerId;
    }

    public void setTopicAnswerId(Integer topicAnswerId) {
        this.topicAnswerId = topicAnswerId;
    }

    public Integer getTopicId() {
        return topicId;
    }

    public void setTopicId(Integer topicId) {
        this.topicId = topicId;
    }

    public String getTopicAnswerContent() {
        return topicAnswerContent;
    }

    public void setTopicAnswerContent(String topicAnswerContent) {
        this.topicAnswerContent = topicAnswerContent;
    }

    public Integer getTopicAnswerUser() {
        return topicAnswerUser;
    }

    public void setTopicAnswerUser(Integer topicAnswerUser) {
        this.topicAnswerUser = topicAnswerUser;
    }

    public String getVideo() {
        return video;
    }

    public void setVideo(String video) {
        this.video = video;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getDestroyTime() {
        return destroyTime;
    }

    public void setDestroyTime(LocalDateTime destroyTime) {
        this.destroyTime = destroyTime;
    }

    public Byte getTip() {
        return tip;
    }

    public void setTip(Byte tip) {
        this.tip = tip;
    }

    public Topicanswer(Integer topicAnswerId, Integer topicId, String topicAnswerContent, Integer topicAnswerUser, String video, LocalDateTime createTime, LocalDateTime destroyTime, Byte tip) {
        this.topicAnswerId = topicAnswerId;
        this.topicId = topicId;
        this.topicAnswerContent = topicAnswerContent;
        this.topicAnswerUser = topicAnswerUser;
        this.video = video;
        this.createTime = createTime;
        this.destroyTime = destroyTime;
        this.tip = tip;
    }

    public Topicanswer() {
    }
}
